<template>
  <el-container>
    <el-header height="80px" style="background-color: white">
      <div style="width: 1200px;margin: 0 auto">
        <el-row :gutter="20">
          <el-col :span="6">
            <router-link to="/">
              <img src="/imgs/icon.png" alt="">
            </router-link>
          </el-col>
          <el-col :span="10">
            <el-menu mode="horizontal" active-text-color="orange">
              <el-menu-item index="1">首页</el-menu-item>
              <el-menu-item index="2">食谱</el-menu-item>
              <el-menu-item index="3">视频</el-menu-item>
              <el-menu-item index="4">资讯</el-menu-item>
            </el-menu>
          </el-col>
          <el-col :span="6">
            <el-input placeholder="请输入搜索的关键字" style="position: relative;top: 15px">
              <template #append>
                <el-button :icon="Search"/>
              </template>
            </el-input>
          </el-col>
          <el-col :span="2">
            <el-popover
                placement="top-start"
                title="欢迎来到烘培坊！"
                :width="200"
                trigger="hover">
              <template #reference>
                <el-icon size="30px" style="position: relative;top: 15px">
                  <User/>
                </el-icon>
              </template>
              <el-button type="info" @click="router.push('/reg')">注册</el-button>
              <el-button type="warning" @click="router.push('/login')">登录</el-button>
            </el-popover>
          </el-col>
        </el-row>
      </div>
    </el-header>
    <el-main>
      <router-view/>
    </el-main>
    <el-footer style="background-color: black;height: 280px;padding: 50px 0">
      <div style="width: 1200px;margin: 0 auto;color: #666;text-align: center">
        <el-row :gutter="10">
          <!--9.1 底部左侧区域 -->
          <el-col :span="8">
            <img src="/imgs/icon.png">
            <p>教程灵感就看烘焙坊</p>
            <p>烘焙行业网络社区平台</p>
            <p>全国成百上千个职位等你来</p>
          </el-col>
          <!--9.2 底部中间区域 三列信息 注意此处内容有单独的CSS内部样式 id="footer-center"-->
          <el-col :span="8" id="footer-center">
            <!--继续嵌套还是从row开始 -->
            <el-row :gutter="10">
              <el-col :span="8">
                <h3>关于我们</h3>
                <p>烘焙学院</p>
                <p>烘焙食谱</p>
                <p>分类信息</p>
                <p>求职招聘</p>
                <p>社区交流</p>
              </el-col>
              <el-col :span="8">
                <h3>服务与支持</h3>
                <p>联系我们</p>
                <p>广告投放</p>
                <p>用户协议</p>
                <p>友情链接</p>
                <p>在线反馈</p>
              </el-col>
              <el-col :span="8">
                <h3>底部导航</h3>
                <p>Archiver</p>
                <p>手机版</p>
                <p>小黑屋</p>
              </el-col>
            </el-row>
          </el-col>
          <!--9.3 底部右侧区域 -->
          <el-col :span="8">
            <p style="font-size: 60px;color:#666;margin: 10px 0;">
              <span style="color:orange;">烘焙</span>坊
            </p>
            <p>烘焙行业社区平台</p>
          </el-col>
        </el-row>
      </div>
    </el-footer>
  </el-container>
</template>

<script setup>
import router from "@/router";

import {
  Search
} from '@element-plus/icons-vue'
</script>

<style>
footer h3{
  color: white;
}
#footer-center p{
  margin: 5px 0;
}
</style>
